package com.pzl.mapper;

import com.pzl.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * UserMapper class
 *
 * @Author panzhenglei
 * @Date 2019/6/8 6:39 PM
 */
public interface UserMapper {

    public List<User> findAll()throws Exception;

    public Long save(User user);

    //public int saveUserRole(@Param("id") Long id,@Param("rid") Long rid);
    public int saveUserRole(@Param("user") User user,@Param("rid") Long rid);

    public User findOne(Long id);

    public int update(User user);


    public int deleteURById(Long id);

    public int deleteById(Long id);


}
